package cn.lili.controller.feign.system;

import cn.lili.modules.system.client.SettingClient;
import cn.lili.modules.system.entity.dos.Setting;
import cn.lili.modules.system.service.SettingService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * SettingFeignController
 *
 * @author Chopper
 * @version v1.0
 * 2021-11-08 11:47
 */
@RestController
@RequiredArgsConstructor
public class SettingFeignController implements SettingClient {

    private final SettingService settingService;

    @Override
    public Setting get(String key) {
        return settingService.get(key);
    }
}
